home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Online / smbfs / source / include / smb / smb_fs.h < prev    next >
C/C++ Source or Header  |  2000-11-28  |  3KB  |  61 lines

  1. /*
  2.  * $Id: smb_fs.h,v 1.6 2000/11/28 09:59:19 olsen Exp $
  3.  *
  4.  * :ts=8
  5.  *
  6.  * smb_fs.h
  7.  *
  8.  * Copyright (C) 1995 by Paal-Kr. Engstad and Volker Lendecke
  9.  * Modified for use with AmigaOS by Olaf Barthel <olsen@sourcery.han.de>
  10.  */
  11.  
  12. #ifndef _LINUX_SMB_FS_H
  13. #define _LINUX_SMB_FS_H
  14.  
  15. #include <smb/smb.h>
  16.  
  17. #include <smb/smb_mount.h>
  18. #include <smb/smb_fs_sb.h>
  19.  
  20. #include <netinet/in.h>
  21.  
  22. #define SMB_HEADER_LEN   37     /* includes everything up to, but not
  23.                                    including smb_bcc */
  24.  
  25. /*****************************************************************************/
  26.  
  27. /* proc.c */
  28. byte *smb_encode_smb_length(byte *p, dword len);
  29. dword smb_len(byte *packet);
  30. int smb_proc_open(struct smb_server *server, const char *pathname, int len, struct smb_dirent *entry);
  31. int smb_proc_close(struct smb_server *server, word fileid, dword mtime);
  32. int smb_proc_read(struct smb_server *server, struct smb_dirent *finfo, off_t offset, long count, char *data, int fs);
  33. int smb_proc_read_raw(struct smb_server *server, struct smb_dirent *finfo, off_t offset, long count, char *data);
  34. int smb_proc_write(struct smb_server *server, struct smb_dirent *finfo, off_t offset, int count, const char *data);
  35. int smb_proc_write_raw(struct smb_server *server, struct smb_dirent *finfo, off_t offset, long count, const char *data);
  36. int smb_proc_create(struct smb_server *server, const char *path, int len, struct smb_dirent *entry);
  37. int smb_proc_mv(struct smb_server *server, const char *opath, const int olen, const char *npath, const int nlen);
  38. int smb_proc_mkdir(struct smb_server *server, const char *path, const int len);
  39. int smb_proc_rmdir(struct smb_server *server, const char *path, const int len);
  40. int smb_proc_unlink(struct smb_server *server, const char *path, const int len);
  41. int smb_proc_trunc(struct smb_server *server, word fid, dword length);
  42. int smb_proc_readdir(struct smb_server *server, char *path, int fpos, int cache_size, struct smb_dirent *entry);
  43. int smb_proc_getattr_core(struct smb_server *server, const char *path, int len, struct smb_dirent *entry);
  44. int smb_proc_getattrE(struct smb_server *server, struct smb_dirent *entry);
  45. int smb_proc_setattr_core(struct smb_server *server, const char *path, int len, struct smb_dirent *new_finfo);
  46. int smb_proc_setattrE(struct smb_server *server, word fid, struct smb_dirent *new_entry);
  47. int smb_proc_dskattr (struct smb_server *server, struct smb_dskattr *attr);
  48. int smb_proc_connect(struct smb_server *server);
  49.  
  50. /* sock.c */
  51. int smb_catch_keepalive(struct smb_server *server);
  52. int smb_dont_catch_keepalive(struct smb_server *server);
  53. int smb_release(struct smb_server *server);
  54. int smb_connect(struct smb_server *server);
  55. int smb_request(struct smb_server *server);
  56. int smb_trans2_request(struct smb_server *server, int *data_len, int *param_len, char **data, char **param);
  57. int smb_request_read_raw(struct smb_server *server, unsigned char *target, int max_len);
  58. int smb_request_write_raw(struct smb_server *server, unsigned const char *source, int length);
  59.  
  60. #endif /* _LINUX_SMB_FS_H */
  61.